<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>实现迷你版的Vue</title>
</head>
<body>
    <div id="app">
        <div>{{car.brand}}</div>
        <div>
            <input type="text" v-model="car.brand">
        </div>
      
    </div>
    <script src="./oberver.js"></script>
    <script src="./compile.js"></script>
    <script src="./vue.js"></script>
    <script src="./watcher.js"></script>
    <script>
    
        const vm = new Vue({
            el:'#app',
            data:{
                msg:'hello vue',
                tag:'我是tag',
                car:{
                    brand:'大众',
                    color:'yellow'
                }
            },
            methods: {
                clickFn(){
                    console.log('查看this指向哪里')
                    //在vue的methods中this应该指向当前实例
                    // console.log(this.$data.msg)
                }
            }
        })
      
    </script>
</body>
</html>